package com.zhifa.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhifa.dao.PositionDao;
import com.zhifa.entity.Position;

@Service("positionService")
public class PositionService {

	@Resource
	PositionDao positionDao;
	
	public List<Position> findPositionsByParentid(Integer parentid){
		return positionDao.findPositionsByParentid(parentid);
	}
	
	public int addposition(Map<String, Object>map){
		return positionDao.addposition(map);
	}
	
	public String findNameById(Integer id){
		return positionDao.findNameById(id);
	}
}
